<?php /* Smarty version 2.6.18, created on 2010-04-28 23:58:58
         compiled from productplace/productplace_list.html */ ?>
<table border="2">
	<th>No</th>
	<th>Place</th>
	<th>Product</th>
	<th>Quantity</th>
	<th>Status</th>
	<th>Action</th>
	
	<?php $_from = $this->_tpl_vars['productplaceList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['phantu']):
?>
		<tr> 
			<td><?php echo $this->_tpl_vars['phantu']['propla_id']; ?>
</td>
			<td> <?php echo $this->_tpl_vars['phantu']['pla_name']; ?>
 </td>
			<td> <?php echo $this->_tpl_vars['phantu']['pro_name']; ?>
 </td>
			<td> <?php echo $this->_tpl_vars['phantu']['propla_quantity']; ?>
 </td>			
			<td> <?php echo $this->_tpl_vars['phantu']['propla_status']; ?>
 </td>	
			
			<td> 
				<a href="<?php echo @APPLICATION_URL; ?>

					productplace/editForm/<?php echo $this->_tpl_vars['phantu']['propla_id']; ?>
">					
					edit 
				</a>
				
				<?php if ($this->_tpl_vars['phantu']['propla_status'] == 1): ?>
					<a href="<?php echo @APPLICATION_URL; ?>

					productplace/inactive/<?php echo $this->_tpl_vars['phantu']['propla_id']; ?>
">					
							Inactive					
					</a> 
				<?php else: ?>
					<a href="<?php echo @APPLICATION_URL; ?>

					productplace/active/<?php echo $this->_tpl_vars['phantu']['propla_id']; ?>
">					
							Active					
					</a> 
				<?php endif; ?>
			</td>	
				
		</tr>
	<?php endforeach; endif; unset($_from); ?>
</table>